<?php
/**
 * Created by YuanPan.
 * User: YuanPan
 * Date: 2018/5/12
 * Time: 18:10
 */

namespace app\api\validate;

/*
 * 验证参数是否为正整数
 */
class IdMustInt extends BaseValidate
{
    protected  $rule = [
        'id' => 'require|isPositiveInteger',
    ];

    protected $message = [
        'id.require' => 'ID必须存在',
        'id.isPositiveInteger' => 'ID必须是正整数',
    ];
}